{% if form.non_field_errors %}
    <div class="non_field_errors">
        {{ form.non_field_errors }}
    </div>
{% endif %}

{% for field in form %}
    {% if field.is_hidden %}
        {{ field }}
        {% if field.errors %}<span class="error">{{ field.label_tag }}: {{ field.errors }}</span>{% endif %}
    {% else %}
        <div class="field_box">
            <div class="field_caption">
                {{ field.label_tag }}:
                {% if field.field.required %}<span class="required_indicator">*</span>{% endif %}
            </div>
            <div class="field_core_box">
                <div class="field{% if field.errors %} errorfield{% endif %}">
                    {{ field }}
                </div>
                <div class="field_info">
                    {{ field.errors }}
                    {% if field.help_text %}<p class="helptext">{{ field.help_text }}</p>{% endif %}
                </div>
            </div>
        </div>
    {% endif %}
{% endfor %}
